package com.zrx.govern.component.easyexcel.starter.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangxiaowei
 * @version V1.0
 */
@Getter
@AllArgsConstructor
public enum ExcelProcessEnum {
    /**
     * excel进度类型
     */
    IMPORT("1"),
    CHECK("3"),
    EXPORT("2");
    private String type;

    public static ExcelProcessEnum getExcelProcessEnumByValue(String value) {
        for (ExcelProcessEnum excelEnum : ExcelProcessEnum.values()) {
            if (value.equalsIgnoreCase(excelEnum.getType())) {
                return excelEnum;
            }
        }
        return null;
    }
}
